import java.net.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Logger;
import java.io.*;
 
public class KKmultiServer {
	public static Map<String, nodoservidor> servidores = new ConcurrentHashMap<String, nodoservidor>();
	public final static Logger milogger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);

	
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = null;
        boolean listening = true;
 
     
        try {
            MyLogger.setup();
            serverSocket = new ServerSocket(4444);
            System.err.println("arranco el server");
        } catch (IOException e) {
            System.err.println("Could not listen on port: 4444.");
            System.exit(-1);
        }
 
        while (listening)
        new nodo(serverSocket.accept()).start();
 
        serverSocket.close();
    }
}